#ifndef RTSPSRV_H
#define RTSPSRV_H

#include "string.h"
#include "../common/global.h"
#include "../common/common.h"

typedef struct _rtspHeader{
    char method[GLB_LEN_32];
    char url[GLB_LEN_256];
    char version[GLB_LEN_32];

    char ip[GLB_LEN_128];
    int  port;
    char path[GLB_LEN_128];
}rtspHeader;

typedef struct _rtspRequest{
    rtspHeader header;
    int        Cseq;
    char       userAgent[GLB_LEN_256];
    char       accept[GLB_LEN_64];
}rtspRequest;


int    rtsp_getLine(char *src,char *dst);
void   rtsp_hanling(char * data,int sock);
bool   rtsp_judge(char * data);

#endif